<?php
foreach ( $languages as $key => $lang ) {
	$class = $key == $currentLang ? 'headr-r-lang-act headr-r-lang' : 'headr-r-lang';
	$img = '<img src="/images/ln/' . $key . '.png" title="' . $lang . '" />';
	$url = CHtml::link ( $key, $this->getOwner ()->createMultilanguageReturnUrl ( $key ), array (
			'class' => $class 
	) );
	$url_img = CHtml::link ( $img, $this->getOwner ()->createMultilanguageReturnUrl ( $key ), array (
			'class' => $class 
	) );
	?>
	 <div class="headr-r-left fl_l">
		<div class="headr-r-lang"><?php echo $url; ?></div>
		<div class="headr-r-img"><?php echo $url_img; ?></div>
	</div>
<?php } ?>
